package cn.pengpeng.rpc.inter;

import java.io.IOException;
import java.net.InetSocketAddress;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

public class RPCClient {
	public static void main(String[] args) throws IOException {
		Service service = RPC.getProxy(Service.class, 100L,new InetSocketAddress("localhost", 8888), new Configuration());
		String hello = service.hello();
		System.out.println(hello);
		
	}

}
